package com.xgk.boot.module.core.dal.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xgk.boot.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 订单标签
 * </p>
 *
 * @author yfbao
 * @since 2025-06-14
 */
@Data
@TableName("order_label")
public class OrderLabelDO extends BaseDO {

    @TableId(value = "ol_id", type = IdType.ASSIGN_ID)
    private Long olId;

    /**
     * 订单编号
     */
    @TableField("order_code")
    private String orderCode;

    /**
     * 原始标签路径
     */
    @TableField("ol_origin_path")
    private String olOriginPath;

    /**
     * 原始标签文件类型
     * png/pdf/zpl...
     */
    @TableField("ol_origin_file_type")
    private String olOriginFileType;

    /**
     * 实际使用的标签路径
     */
    @TableField("ol_path")
    private String olPath;

    /**
     * 实际使用标签文件类型
     * png/pdf/zpl...
     */
    @TableField("ol_file_type")
    private String olFileType;

    /**
     * 处理状态
     * 0:未处理 1:已处理 2:处理异常
     */
    @TableField("ol_status")
    private Integer olStatus;

    /**
     * 执行次数
     */
    @TableField("ol_run_count")
    private Integer olRunCount;

    /**
     * 备注(错误信息)
     */
    @TableField("ol_note")
    private String olNote;

    /**
     * 创建时间
     */
    @TableField("ol_create_date")
    private Date olCreateDate;

    /**
     * 更新时间
     */
    @TableField("ol_update_time")
    private Date olUpdateTime;

    @Override
    public String toString() {
        return "OrderLabel{" +
        ", olId = " + olId +
        ", orderCode = " + orderCode +
        ", olOriginPath = " + olOriginPath +
        ", olOriginFileType = " + olOriginFileType +
        ", olPath = " + olPath +
        ", olFileType = " + olFileType +
        ", olStatus = " + olStatus +
        ", olRunCount = " + olRunCount +
        ", olNote = " + olNote +
        ", olCreateDate = " + olCreateDate +
        ", olUpdateTime = " + olUpdateTime +
        "}";
    }
}
